package com.tricode.ile.training.task.sl275.lab7;

public abstract class Animal {

    protected int legs;

    protected Animal(int legs) {
        this.legs = legs;
    }

    protected Animal() {
    }

    public void walk() {
        System.out.println("This animal walks on " + legs +" legs");
    }

    public abstract void eat();

}
